<section id="setuser">
    <section class="userTop">
        <header nz-row>
            <div nz-col [nzSpan]="6">
                <label>
                    <span>运单编号</span>
                </label>
                <nz-input [(ngModel)]="parts.transportOrderNo" [nzPlaceHolder]="'运单编号'" [nzSize]="'large'"></nz-input>
            </div>
            <div nz-col [nzSpan]="6">
                <label>
                    <span>发货日期</span>
                </label>
                <nz-datepicker style="width:70%;margin-left:15px" [nzSize]="'large'" [(ngModel)]="deliverTime" [nzPlaceHolder]="'发货日期'" [nzFormat]="'YYYY-MM-DD'"></nz-datepicker>
            </div>
            <div nz-col [nzSpan]="6">
                <label>
                    <span>车辆类别</span>
                </label>
                <nz-select style="width:70%;margin-left:15px" [(ngModel)]="parts.carType" [nzPlaceHolder]="'车辆类别'" [nzSize]="'large'" nzAllowClear>
                    <nz-option *ngFor="let option of optionCarType" [nzLabel]="option.label" [nzValue]="option.value" [nzDisabled]="option.disabled">
                    </nz-option>
                </nz-select>
            </div>
        </header>
        <main class="clearfix">
            <button class="fr" nz-button [nzType]="'primary'" (click)="loadAll()">
              <i class="anticon anticon-search"></i><span>检索</span>
            </button>
        </main>
        <footer>
        </footer>
    </section>
    <section>
        <main>
            <nz-table #nzTable [nzAjaxData]="data" [nzTotal]="_total" [nzPageSize]="10" (nzPageIndexChange)="resetIndex($event)">
                <thead nz-thead>
                    <tr>
                        <th nz-th><span>序号</span></th>
                        <th nz-th><span>运单编号</span></th>
                        <th nz-th><span>派车单编号</span></th>
                        <th nz-th><span>发货日期</span></th>
                        <th nz-th><span>车辆类别</span></th>
                        <th nz-th><span>挂车</span></th>
                        <th nz-th><span>出货地址</span></th>
                        <th nz-th><span>卸货地址</span></th>
                        <th nz-th><span>承运司机</span></th>
                        <th nz-th><span>运费（元）</span></th>
                        <th nz-th><span>押金（元）</span></th>
                        <th nz-th><span>平台手续费（5%）</span></th>
                        <th nz-th><span>油卡（元）</span></th>
                        <th nz-th><span>银行卡（元）</span></th>
                        <th nz-th><span>应付（元）</span></th>
                        <th nz-th><span>实付（元）</span></th>
                    </tr>
                </thead>
                <tbody nz-tbody>
                    <tr nz-tbody-tr *ngFor="let data of nzTable.data;let i = index">
                        <td nz-td>{{i+1}}</td>
                        <td nz-td>
                            {{data.transportOrderNo}}
                        </td>
                        <td nz-td>{{data.dispatchOrderNo}}</td>
                        <td nz-td>{{data.deliverTime}}</td>
                        <td nz-td>{{data.carType}}</td>
                        <td nz-td>{{data.isTrailer}}</td>
                        <td nz-td>{{data.startingCity}}</td>
                        <td nz-td>{{data.endCity}}</td>
                        <td nz-td>{{data.driverName}}</td>
                        <td nz-td>{{data.freight}}</td>
                        <td nz-td>{{data.deposit}}</td>
                        <td nz-td>{{data.platformFee}}</td>
                        <td nz-td>{{data.oilCardPay}}</td>
                        <td nz-td>{{data.bankCardTransfer}}</td>
                        <td nz-td>{{data.shouldIncome}}</td>
                        <td nz-td>{{data.actualIncome}}</td>
                    </tr>
                </tbody>
            </nz-table>
        </main>
    </section>
</section>